/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86156
 * Date: 2023-04-07
 * Time: 10:31
 */
public class StudentTest {
    public static void main(String[] args) {
        // Student stu2 = new Student();
        // 报错原因,没有无参构造方法,已经有了有参构造方法,系统不会再提供无参构造

        Student stu = new Student(18,"贾瑞");

        System.out.println(stu.getAge());
        System.out.println(stu.getName());
    }
}
